package com.xike.net;

public class NetConstant {
	/*
	 * 网络连接超时时间，单位毫秒，1000表示1秒
	 */
	public final static int CONNECTION_TIMEOUT = 10000;

	public final static String PROXY_CMWAP = "http://10.0.0.172";
	public final static String PROXY_3GWAP = "http://10.0.0.172";
	public final static String PROXY_CTWAP = "http://10.0.0.200";
	public final static int NET_TYPE_UNKNOWN = -1;
	public final static int NET_TYPE_MOBILE = 0;
	public final static int NET_TYPE_WIFI = 1;
	public final static int NET_TYPE_3G = 2;
	public final static int NET_TYPE_CMNET = 3;
	public final static int NET_TYPE_CMWAP = 4;
	public final static int NET_TYPE_3GNET = 5;
	public final static int NET_TYPE_3GWAP = 6;
	public final static int NET_TYPE_CTNET = 7;
	public final static int NET_TYPE_CTWAP = 8;

	public final static String DEFAULT_CONTENT_CHARSET = "utf-8";
	public final static String ENCODING_GBK = "GBK";
	public final static int FILE_READ_BUFFER = 8192;
	public final static int HTTP_READ_BUFFER = 8192;

	/**
	 * 保存缓存文件的SharedPreferences
	 */
	public final static String SHARED_PREFERENCES_FILECACHE = "sp_fileCache";
	public final static String SHARED_PREFERENCES_APPINFOCACHE = "sp_appInfo";
	public final static String IDENTIFY_STORAGE_KEY = "identify";
	/**
	 * URL访问是保存的cache时间，超过这个时间会自动删除或被覆盖
	 */
	public static final long NET_CACHE_SECONDS = 3600;// 3600秒，1小时
	public final static char SPLITER = ',';
	public final static String VERSION_MINI_STORAGE_KEY = "version_mini";
}
